﻿cmake_minimum_required(VERSION 2.8)
project(WindowsAudioInputDevice)
set(hdrs WindowsAudioInputDevice_common.hh)
set(srcs showAudioInputPorts.cpp WindowsAudioInputDevice_common.cpp)
include_directories(.)
if(BUILD_DLL)
  add_definitions(-DBUILD_DLL)
endif()
add_executable(${PROJECT_NAME}_mixer ${srcs} ${hdrs} WindowsAudioInputDevice_mixer.cpp)
add_executable(${PROJECT_NAME}_noMixer ${srcs} ${hdrs} WindowsAudioInputDevice_noMixer.cpp)
set_target_properties(${PROJECT_NAME}_mixer PROPERTIES OUTPUT_NAME "${PROJECT_NAME}_mixer$<$<CONFIG:Debug>:D>")
set_target_properties(${PROJECT_NAME}_noMixer PROPERTIES OUTPUT_NAME "${PROJECT_NAME}_noMixer$<$<CONFIG:Debug>:D>")
target_link_libraries(${PROJECT_NAME}_mixer UsageEnvironment groupsock BasicUsageEnvironment liveMedia ${SSL_LIBRARIES} winmm)
target_link_libraries(${PROJECT_NAME}_noMixer UsageEnvironment groupsock BasicUsageEnvironment liveMedia ${SSL_LIBRARIES} winmm)
install(TARGETS ${PROJECT_NAME}_mixer RUNTIME DESTINATION bin)
install(TARGETS ${PROJECT_NAME}_noMixer RUNTIME DESTINATION bin)
